/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race African American African</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15771 (C-0-T14914-S15768-S15771-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAfricanAmericanAfrican()
 * @model extendedMetaData="name='RaceAfricanAmericanAfrican'"
 * @generated
 */
public enum RaceAfricanAmericanAfrican implements Enumerator {
	/**
	 * The '<em><b>20602</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20602_VALUE
	 * @generated
	 * @ordered
	 */
	_20602(0, "_20602", "2060-2"),

	/**
	 * The '<em><b>20610</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20610_VALUE
	 * @generated
	 * @ordered
	 */
	_20610(1, "_20610", "2061-0"),

	/**
	 * The '<em><b>20628</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20628_VALUE
	 * @generated
	 * @ordered
	 */
	_20628(2, "_20628", "2062-8"),

	/**
	 * The '<em><b>20636</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20636_VALUE
	 * @generated
	 * @ordered
	 */
	_20636(3, "_20636", "2063-6"),

	/**
	 * The '<em><b>20644</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20644_VALUE
	 * @generated
	 * @ordered
	 */
	_20644(4, "_20644", "2064-4"),

	/**
	 * The '<em><b>20651</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20651_VALUE
	 * @generated
	 * @ordered
	 */
	_20651(5, "_20651", "2065-1"),

	/**
	 * The '<em><b>20669</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_20669_VALUE
	 * @generated
	 * @ordered
	 */
	_20669(6, "_20669", "2066-9");

	/**
	 * The '<em><b>20602</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20602</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20602
	 * @model literal="2060-2"
	 * @generated
	 * @ordered
	 */
	public static final int _20602_VALUE = 0;

	/**
	 * The '<em><b>20610</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20610</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20610
	 * @model literal="2061-0"
	 * @generated
	 * @ordered
	 */
	public static final int _20610_VALUE = 1;

	/**
	 * The '<em><b>20628</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20628</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20628
	 * @model literal="2062-8"
	 * @generated
	 * @ordered
	 */
	public static final int _20628_VALUE = 2;

	/**
	 * The '<em><b>20636</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20636</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20636
	 * @model literal="2063-6"
	 * @generated
	 * @ordered
	 */
	public static final int _20636_VALUE = 3;

	/**
	 * The '<em><b>20644</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20644</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20644
	 * @model literal="2064-4"
	 * @generated
	 * @ordered
	 */
	public static final int _20644_VALUE = 4;

	/**
	 * The '<em><b>20651</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20651</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20651
	 * @model literal="2065-1"
	 * @generated
	 * @ordered
	 */
	public static final int _20651_VALUE = 5;

	/**
	 * The '<em><b>20669</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>20669</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_20669
	 * @model literal="2066-9"
	 * @generated
	 * @ordered
	 */
	public static final int _20669_VALUE = 6;

	/**
	 * An array of all the '<em><b>Race African American African</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAfricanAmericanAfrican[] VALUES_ARRAY =
		new RaceAfricanAmericanAfrican[] {
			_20602,
			_20610,
			_20628,
			_20636,
			_20644,
			_20651,
			_20669,
		};

	/**
	 * A public read-only list of all the '<em><b>Race African American African</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAfricanAmericanAfrican> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race African American African</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAfricanAmericanAfrican get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAfricanAmericanAfrican result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race African American African</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAfricanAmericanAfrican getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAfricanAmericanAfrican result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race African American African</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAfricanAmericanAfrican get(int value) {
		switch (value) {
			case _20602_VALUE: return _20602;
			case _20610_VALUE: return _20610;
			case _20628_VALUE: return _20628;
			case _20636_VALUE: return _20636;
			case _20644_VALUE: return _20644;
			case _20651_VALUE: return _20651;
			case _20669_VALUE: return _20669;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAfricanAmericanAfrican(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAfricanAmericanAfrican
